package com.example.consumer_order_feign_disable_special.Controller;

import com.example.consumer_order_feign_disable_special.feign.UserFeign;
import com.example.consumer_order_feign_disable_special.model.UserInf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    private UserFeign userFeign;

    @RequestMapping("/order/user/getById")
    @ResponseBody
    public UserInf getById(String id){
        return userFeign.getById(id);
    }


}
